<?php
require_once 'class/weapon.php';
require_once 'class/handgun.php';
require_once 'class/sniper.php';
require_once 'class/factory.php';
require_once 'class/newfactory.php';
require_once 'class/newhandgun.php';
require_once 'class/newsniper.php';

require_once 'class/ifactory.php';
require_once 'class/handgunfactory.php';
require_once 'class/sniperfactory.php';


//$factory = new Factory();
$factory = new NewFactory();
$handgun = $factory->getWeapon('handgun');
$sniper = $factory->getWeapon('sniper');
$handgun->display();
$sniper->display();


